<template>
  <div>{{message}}</div>
</template>

<script>
import Bus from "@/utils/bus.js";

export default {
  name: "bbb",
  data() {
    return {
      message: "默认值"
    };
  },
  methods: {},
  created() {
    Bus.$on("on", (msg) => {
      this.message = msg.a;
    });
  }
};
</script>

<style scoped>
</style>